const CURRENT_TOKEN = 'token';
const PROGRESS_DATA = 'progressData';

export const getToken = (): string => {
    return localStorage.getItem(CURRENT_TOKEN) || '';
}

export const setToken = (token: string) => {
    localStorage.setItem(CURRENT_TOKEN, token)
}

export const removeToken = () => {
    localStorage.removeItem(CURRENT_TOKEN)
}

export const setProgressData = (progressData: any) => {
    localStorage.setItem(PROGRESS_DATA, progressData)
}

export const getProgressData = () => {
    return localStorage.getItem(PROGRESS_DATA) || '';
}

export const removeProgressData = () => {
    localStorage.removeItem(PROGRESS_DATA)
}